package com.acsior.hibernate.vo;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.ddfn.impl.hibernate.vo.NomElementVO;

/**
 * NomWorkplaceOs entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "nom_workplace_os", uniqueConstraints = @UniqueConstraint(columnNames = "system_name"))
@GeneratorKey(tableName = "nom_workplace_os")
public class NomWorkplaceOsVO extends NomElementVO {

	private static final long serialVersionUID = -7823894717817442189L;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "nomWorkplaceOs")
	private List<SecWorkplaceVO> secWorkplaces;

	// Constructors

	/** default constructor */
	public NomWorkplaceOsVO() {
		this.secWorkplaces = new ArrayList<SecWorkplaceVO>();
	}

	/**
	 * @return стойността на secWorkplaces
	 */
	public List<SecWorkplaceVO> getSecWorkplaces() {
		return this.secWorkplaces;
	}

	/**
	 * @param secWorkplaces
	 *            се залага в secWorkplaces
	 */
	public void setSecWorkplaces(List<SecWorkplaceVO> secWorkplaces) {
		this.secWorkplaces = secWorkplaces;
	}

}